#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int mainjoushx()
{
	int a[100];
	int x,y;
	int i = 0;
	int b;
	while (scanf("%d", &a[i]) != EOF)
	{
		i++;
	}
	int j = --i;
	while (1)
	{
		for (x = i; x >= 0; x--)
		{
			if (a[x] % 2 == 1)
				break;
		}
		if (x == 0)
			break;
		for (y = 0; y < i ; y++)
		{
			if (a[y] % 2 == 0)
				break;
		}
		if (x < y)
			break;
		b = a[x];
		a[x] = a[y];
		a[y] = b;
	}
	while (i>=0)
	{
		printf("%d", a[j - i]);
		i--;
	}
	printf("");
	return 0;
}